<?
if($edit_mode=="edit"){
?>
	<td><input type="text" id="value" name="value" value="<?=$info->value?>"></td>
	<td><input type="text" id="explanation" name="explanation" value="<?=$info->explanation?>"></td>
	<td><input type="text" id="sequence" name="sequence" value="<?=$info->sequence?>"></td>
	<td>
		<a onclick="edit_environmental_features_submit(<?=$info->environmental_features_id?>);" href="#"><i class="icon-edit"></i>确认修改</a> &nbsp;&nbsp;<a onclick="cancel_edit_environmental_features(<?=$info->environmental_features_id?>);" href="#"><i class="icon-edit"></i>取消</a>
	</td>
<?
}else if($edit_mode=="edit_return"){
?>
	<td><?=$info->value?></td>
	<td><?=$info->explanation?></td>
	<td><?=$info->sequence?></td>
	<td>
		<a onclick="edit_environmental_features(<?=$info->environmental_features_id?>);" href="#"><i class="icon-edit"></i>修改</a>&nbsp;&nbsp;
		<a href="<?=site_url('/environmental_features/data_delete/'.$info->environmental_features_id)?>" href="#"><i class="icon-trash"></i>刪除</a>
	</td>
<?
}else{
	foreach($result as $key=>$val){
?>
	<tr id="t_<?=$val->environmental_features_id?>">
		<td><?=$val->value?></td>
		<td><?=$val->explanation?></td>
		<td><?=$val->sequence?></td>
		<td>
			<a onclick="edit_environmental_features(<?=$val->environmental_features_id?>);" href="#"><i class="icon-edit"></i>修改</a>&nbsp;&nbsp;
			<a href="<?=site_url('/environmental_features/data_delete/'.$val->environmental_features_id)?>" href="#"><i class="icon-trash"></i>刪除</a>
		</td>
	</tr>
<?
	}	
}
?>